//
//  LZAudioPlayerManager.h
//  LZMusicPlayer
//
//  Created by wulanzhou on 2016/10/14.
//  Copyright © 2016年 wulanzhou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>


/**
 只支持播放本地歌曲
 */
@interface LZAudioPlayerManager : NSObject

+ (LZAudioPlayerManager *)shareInstance;

- (AVAudioPlayer *)playMusicWithURL:(NSURL *)musicURL;
- (AVAudioPlayer *)playMusicWithName:(NSString *)musicName;
- (void)pauseMusic:(NSString *)filename;
- (void)stopMusic:(NSString *)filename;

/**
  后台播放
 */
- (void)setBackgroundPlayer;

@end
